#include "render/UniformBuffer.h"
#include "render/RendererAPI.h"

#include "render/OpenGL/OpenGLUniformBuffer.h"

namespace Cogs {
	std::shared_ptr<UniformBuffer> UniformBuffer::Create(uint32_t size, uint32_t binding) {
		switch (RendererAPI::GetAPIType()) {
			case RendererAPIType::OpenGL: return std::make_shared<OpenGLUniformBuffer>(size, binding);
			default: return nullptr;
		}
	}
}